<?php

class Photo_Controller_Browse_View extends Nuo_Controller
{
	function execute($request)
	{
		$table = Nuo::getTable('photo');

		$id = $request -> getParam('photo_id');

		$photo = Nuo::getItem('photo', $id);

		$user = $photo -> getPoster();

		$viewer = Nuo::getUser();

		return  $this -> render(array(
			'photo' => $photo,
			'user' => $user,
			'viewer' => $viewer
		));
	}

}
